<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page import="java.util.*" %>
<%@page import="util.PhysicalFeature.*" %>
<%@page import="util.PhysicalFeatureUtil" %>

<%
List<Gender> genders= PhysicalFeatureUtil.getGenders();
request.setAttribute("genders", genders);

List<Skin> skins= PhysicalFeatureUtil.getSkins();
request.setAttribute("skins", skins);

List<Eyes> eyes= PhysicalFeatureUtil.getEyes();
request.setAttribute("eyes", eyes);

List<Hair> hairs= PhysicalFeatureUtil.getHairs();
request.setAttribute("hairs", hairs);
%>

<div id="divAA1">
	<table>
		<tr>
			<td>Gender</td>
			<td>
				<c:forEach var="gender" items="${genders}">
					<input type="checkbox"name="genderAA1" value="${gender.genderName}" />${gender.genderShowName}
			      </c:forEach>
			</td>
		</tr>	
		<tr>
			<td>Age</td>
			<td>
			
			<%-- <input type="text"
				value="${(not empty user) && (not empty user.actor) ? user.actorFeatures.height : ''}"
				name="ageAA1" /> * (integer) --%>
				
				<input type="text"	name="ageAA1" /> * (integer)
				
				</td>
		</tr>
		<tr>
			<td>Height</td>
			<td>
				<%-- <input type="text"
				value="${(not empty user) && (not empty user.actor) ? user.actorFeatures.height : ''}"
				name="heightAA1" /> * (integer) --%>
				 <input type="text" name="heightAA1" /> * (integer)


			</td>
		</tr>
		<tr>
			<td>Weight</td>
			<td>
				<%-- <input type="text"
				value="${(not empty user) && (not empty user.actor) ? user.actorFeatures.weight : ''}"
				name="weightAA1" />* (integer)
				 --%> <input type="text" name="weightAA1" />* (integer)

			</td>
		</tr>
		<tr>
			<td>Hair</td>
			<td>
				<%-- <input type="checkbox"
				${(not empty user) && (user.actorFeatures.skinColor == 'white') ? 'checked=checked' : ''}
				name="hairAA1" value="blond" />Blond <input type="checkbox"
				${(not empty user) && (user.actorFeatures.skinColor == 'white') ? 'checked=checked' : ''}
				name="hairAA1" value="red" />Red <input type="checkbox"
				${(not empty user) && (user.actorFeatures.skinColor == 'white') ? 'checked=checked' : ''}
				name="hairAA1" value="brown" />Brown <input type="checkbox"
				${(not empty user) && (user.actorFeatures.skinColor == 'white') ? 'checked=checked' : ''}
				name="hairAA1" value="gray" />Gray <input type="checkbox"
				${(not empty user) && (user.actorFeatures.skinColor == 'white') ? 'checked=checked' : ''}
				name="hairAA1" value="auburn" />Auburn <input type="checkbox"
				${(not empty user) && (user.actorFeatures.skinColor == 'white') ? 'checked=checked' : ''}
				name="hairAA1" value="black" />Black <input type="checkbox"
				${(not empty user) && (user.actorFeatures.skinColor == 'white') ? 'checked=checked' : ''}
				name="hairAA1" value="chestnut" />Chestnut <input type="checkbox"
				${(not empty user) && (user.actorFeatures.skinColor == 'white') ? 'checked=checked' : ''}
				name="hairAA1" value="white" />White --%> 
				
				<c:forEach var="hair" items="${hairs}">
					<input type="checkbox"name="hairAA1" value="${hair.hairName}" />${hair.hairShowName}
			      </c:forEach>
			</td>
		</tr>
		<tr>
			<td>Skin</td>
			<td>
				<%-- <input type="checkbox"
				${(not empty user) && (user.actorFeatures.skinColor == 'white') ? 'checked=checked' : ''}
				name="skinAA1" value="white" />White <input type="checkbox"
				${(not empty user) && (user.actorFeatures.skinColor == 'white') ? 'checked=checked' : ''}
				name="skinAA1" value="light" />Light <input type="checkbox"
				${(not empty user) && (user.actorFeatures.skinColor == 'white') ? 'checked=checked' : ''}
				name="skinAA1" value="brown" />Brown <input type="checkbox"
				${(not empty user) && (user.actorFeatures.skinColor == 'white') ? 'checked=checked' : ''}
				name="skinAA1" value="black" />Black --%>
				
				<c:forEach var="skin" items="${skins}">
					<input type="checkbox"name="skinAA1" value="${skin.skinName}" />${skin.skinShowName}
			      </c:forEach>
			</td>
		</tr>
		<tr>
			<td>Eyes</td>
			<td>
				<%-- <input type="checkbox"
			${(not empty user) && (user.actorFeatures.skinColor == 'white') ? 'checked=checked' : ''}
			name="eyesAA1" value="blue" />Blue <input type="checkbox"
			${(not empty user) && (user.actorFeatures.skinColor == 'white') ? 'checked=checked' : ''}
			name="eyesAA1" value="green" />Green <input type="checkbox"
			${(not empty user) && (user.actorFeatures.skinColor == 'white') ? 'checked=checked' : ''}
			name="eyesAA1" value="brown" />Brown <input type="checkbox"
			${(not empty user) && (user.actorFeatures.skinColor == 'white') ? 'checked=checked' : ''}
			name="eyesAA1" value="amber" />Amber <input type="checkbox"
			${(not empty user) && (user.actorFeatures.skinColor == 'white') ? 'checked=checked' : ''}
			name="eyesAA1" value="gray" />Gray <input type="checkbox"
			${(not empty user) && (user.actorFeatures.skinColor == 'white') ? 'checked=checked' : ''}
			name="eyesAA1" value="hazel" />Hazel <input type="checkbox"
			${(not empty user) && (user.actorFeatures.skinColor == 'white') ? 'checked=checked' : ''}
			name="eyesAA1" value="violet" />Violet <input type="checkbox"
			${(not empty user) && (user.actorFeatures.skinColor == 'white') ? 'checked=checked' : ''}
			name="eyesAA1" value="black" />Black --%>
			
			<c:forEach var="eye" items="${eyes}">
				<input type="checkbox"name="eyesAA1" value="${eye.eyesName}" />${eye.eyesShowName}
		      </c:forEach>
			</td>
		</tr>
	</table>
	<table>
		<tr>
			<td>Description</td>
			<td>Count</td>
		</tr>
		<tr>
			<td><textarea rows="4" cols="50" name="descriptionAA1">${(not empty user) && (not empty user.actor) ? user.actorFeatures.height : ''}</textarea>
			</td>
			<td><input type="text"
				value="${(not empty user) && (not empty user.actor) ? user.actorFeatures.weight : '1'}"
				name="countAA1" /> * (integer)</td>
		</tr>
	</table>
	<input type="button" id="cancelAA1" value="Cancel" alt="AA1" />
	<div class="grid_24 hr-line2"></div>
</div>